package com.jnshu.service;

import com.jnshu.dto.admin.ManageDto;
import com.jnshu.dto.admin.PasswordDto;
import com.jnshu.pojo.Manage;
import com.jnshu.tools.resultUtils.PageBean;
import com.jnshu.tools.resultUtils.ResultBean;

import java.util.List;

/**
 * @author Martin
 * @date 2019/8/12 21:22
 */
public interface ManageService {
    //根据id删除
    ResultBean deleteByPrimaryKey(Long id);
    //新增管理
    ResultBean insertSelective(ManageDto manageDto,String loginId);
    //根据id更新
    ResultBean updateByPrimaryKeySelective(ManageDto manageDto,String loginId);
    //分页列表查询
    PageBean selectManageList(int pageNum,int pageSize);
    //根据角色id查询管理账户
    PageBean selectByRoleId(Long id,int pageNum,int pageSize);
    //修改密码
    ResultBean updateByLoginPassword(PasswordDto passwordDto,String loginId);
    //根据id查询用户信息
    ResultBean selectByManageId(Long id);
}
